package com.jr.service.impl;

import com.jr.entity.Emp;
import com.jr.service.EmpService;
import com.jr.mapper.EmpMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
@Service
public class EmpServiceimpl implements EmpService {
    @Autowired
    private EmpMapper empMapper;
    public EmpMapper getEmpMapper(){
        return empMapper;
    }
    public void setEmpMapper(EmpMapper empMapper){
        this.empMapper=empMapper;
    }

    @Override
    public ArrayList<Emp> findAll() {
        return empMapper.selectAll();
    }
}
